export const envConfig = {
  dev: {
    baseUrl: 'http://edulocal.51cto.com', 
    pmiUrl: 'https://idp.pmi.org',
  },
  test: {
    baseUrl: 'http://linetest.edu.51cto.com',
    pmiUrl: 'https://idp.pmi.org',
  },
  stage: {
    baseUrl: 'https://stage-edu.51cto.com',
    pmiUrl: 'https://idp.pmi.org',
  },
  uat: {
    baseUrl: 'https://edu.51cto.com',
    pmiUrl: 'https://idp.pmi.org',
  },
  production: {
    baseUrl: 'https://edu.51cto.com',
    pmiUrl: 'https://idp.pmi.org',
  },
};

export function getEnvConfig(env) {
  return {
    baseUrl: envConfig[env].baseUrl,
    pmiUrl: envConfig[env].pmiUrl,
  };
}